package service;

import java.util.List;

import entity.Post;

public interface PostService {

    boolean createPost(Post post);

    boolean deletePost(Long postId, Long operatorId);

    boolean updatePost(Post post);

    Post getPostById(Long postId);

    List<Post> listPosts(int pageNum, int pageSize, int sortType);

    List<Post> listPostsByUserId(Long userId, int pageNum);

    void updateLikeCount(Long postId);

    void updateCommentCount(Long postId);

	Object getAllPosts(int i, int j);

	void deletePost(Integer id);

	}

